package com.cs.noTender.service.impl;

import com.cs.noTender.domain.CsPubAttachments;
import com.cs.noTender.domain.CsQuotation;
import com.cs.noTender.domain.NonTenderProject;
import com.cs.noTender.mapper.NonTenderProjectMapper;
import com.cs.noTender.service.NonTenderProjectService;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @Author：zrx
 * @Package：com.cs.service.impl
 * @Project：RuoYi-Cloud
 * @name：NonTenderProjectServiceImpl
 * @Date：2024/12/9 11:14
 * @Filename：NonTenderProjectServiceImpl
 */
@Service
public class NonTenderProjectServiceImpl implements NonTenderProjectService {
    private final NonTenderProjectMapper nonTenderProjectMapper;

    public NonTenderProjectServiceImpl(NonTenderProjectMapper nonTenderProjectMapper) {
        this.nonTenderProjectMapper = nonTenderProjectMapper;
    }

    @Override
    public List<NonTenderProject> litNonTenderProject(NonTenderProject nonTenderProject) {
        return nonTenderProjectMapper.litNonTenderProject(nonTenderProject);
    }

    @Override
    public CsPubAttachments getCsPubAttachmentsByAid(Integer aid) {
        return nonTenderProjectMapper.getCsPubAttachmentsByAid(aid);
    }

    @Override
    public NonTenderProject getNonTenderProjectByGid(Integer gid) {
        return nonTenderProjectMapper.getNonTenderProjectByGid(gid);
    }

    @Override
    public List<CsQuotation> listQuotation(String gfId) {
        return nonTenderProjectMapper.listQuotation(gfId);
    }

    @Override
    public Integer updateNonTenderProject(NonTenderProject nonTenderProject) {
        return nonTenderProjectMapper.updateNonTenderProject(nonTenderProject);
    }

    @Override
    public Integer insertCsPubAttachments(CsPubAttachments csPubAttachments) {
        return nonTenderProjectMapper.insertCsPubAttachments(csPubAttachments);
    }

    @Override
    public Integer updateCsPubAttachments(CsPubAttachments csPubAttachments) {
        return nonTenderProjectMapper.updateCsPubAttachments(csPubAttachments);
    }

    @Override
    public Integer insertCsQuotation(CsQuotation csQuotation) {
        return nonTenderProjectMapper.insertCsQuotation(csQuotation);
    }

    @Override
    public Integer deleteCsQuotationByGfIds(String gfId) {
        return nonTenderProjectMapper.deleteCsQuotationByGfIds(gfId);
    }
}
